<%@ page import="java.sql.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>显示所有专业信息</title>
</head>
<body>
<a href="addMajor.jsp">添加专业</a>
<table border='1'>
    <tr>
        <td>专业ID</td>
        <td>专业名称</td>
        <td>编辑</td>
    </tr>
    <c:forEach items="${majorList}" var="major">
        <tr>
            <td>${major.id}</td>
            <td>${major.majorName}</td>
            <td>
                <a href="updateMajor.jsp?id=${major.id}&name=${major.majorName}">修改</a>
                <a href="deleteMajorServlet.do?id=${major.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
